 $(function(){
            $("#btnLogin").on("click",function(){
                var userName = $("username']").val();
                var pwd = $("password']").val();
                
                $.post("login1.php",{
                    "userName":userName,
                    "pwd":pwd
                },function(data){
                    alert(data);
                    if(data=="登录成功"){
                        location = "index.php";
                    }else{
                        alert("用户名或密码有误！");
						location ="login"
                    }
                });
            });
        });
		